<?php

/**
 * Comment
 * 
 * @package    iceblog
 * @subpackage model
 * @author     Jonathan Nieto
 */
class Comment extends BaseComment
{
  public function save(Doctrine_Connection $conn = null)
  {
    if ($this->isNew() && sfContext::hasInstance())
    {
      $this->setDatetime(date('Y-m-d H:i:s'));
    }
    
    parent::save($conn);
  }
}
